//
//  TKErrorView.h
//  TopGirls
//
//  Created by Khang on 9/26/13.
//
//

#import <Foundation/Foundation.h>

@protocol TKErrorViewDelegate;
@interface TKErrorView : UIView {
    UIImageView* imageErrorView;
    UILabel* titleView;
    UILabel* subTitleView;
    UIButton* retryButton;
}

@property (nonatomic, weak) id<TKErrorViewDelegate> delegate;

- (void)showEmptyView:(BOOL)show;
- (void)showErrorView:(BOOL)show;

@end


@protocol TKErrorViewDelegate <NSObject>

@optional
- (void)retryButtonPressed;

- (UIImage*)imageForEmptyView;
- (NSString*)titleForEmptyView;
- (NSString*)subTitleForEmptyView;

- (UIImage*)imageForErrorView;
- (NSString*)titleForErrorView;
- (NSString*)subTitleForErrorView;

- (NSString*)titleForRetryButton;

@end